<%--
  Created by IntelliJ IDEA.
  User: zuxia
  Date: 2018/7/18
  Time: 12:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>

	<head>
		<meta charset="UTF-8">
		<title>订单详情</title>
		<link rel="stylesheet" href="../css/amazeui.min.css" />
		<link rel="stylesheet" href="../css/admin.css" />
	</head>

	<body style="overflow: scroll;">

		<div class="am-cf am-padding am-padding-bottom-0">
			<div class="am-fl am-cf">
				<strong class="am-text-primary am-text-lg">订单详情</strong>
				<small></small>
			</div>

		</div>

		<hr>

		<div class="am-g">
		</div>
		<div class="am-g">
			<div class="am-u-sm-12">
				<form class="am-form" onclick="" method="post">
					<table id="table_tbody">
						<tr>
							<th hidden="hidden">详情编号</th>
							<th style="width: 300px;">菜品名称</th>
							<th style="width: 300px;">菜品数量</th>
							<th>菜品状态</th>
						</tr>
					</table>
					<hr>
				</form>
			</div>
		</div>
		</div>
	</body>
	<script type="text/javascript" src="../js/jquery-1.4.1.js"></script>
	<script type="text/javascript">
        // $().ready(function() {
         //   console.log({skipvalue});
		// })
        var orderNo = window.paramFromParent;
        $.ajax({
            url:"/fullboy/queryOrderNo.action",
            data:{"orderNo" :orderNo},
            type: "POST",
            cache: false,
            dataType: "json",
            success:function(data){
                console.log(data.data);
                var order = data.data;
                for (var i = 0; i < order.length;i++){
                    $("#table_tbody").append("<tr>\n" +
                        "\t\t\t\t\t\t\t<td hidden=\"hidden\">"+order[i][1].oDId+"</td>\n" +
                        "\t\t\t\t\t\t\t<td>"+order[i][2].dName+"</td>\n" +
                        "\t\t\t\t\t\t\t<td>"+order[i][1].count+"</td>\n" +
                        "\t\t\t\t\t\t\t<td>\n" +
                        "\t\t\t\t\t\t\t\t<select  id=\"cooked\">\n" +
                        "\t\t\t\t\t\t\t\t\t<option value=\"0\" selected='${order[i][1].cooked==0?'selected':''}'>等待上菜</option>\n" +
                        "\t\t\t\t\t\t\t\t\t<option value=\"1\" selected='${order[i][1].cooked==1?'selected':''}'>已上菜</option>\n" +
                        "\t\t\t\t\t\t\t\t</select>\n" +
                        "\t\t\t\t\t\t\t</td>\n" +
                        "\t\t\t\t\t\t</tr>");
                }
            }
        });
	</script>

</html>
